package com.robot.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.robot.dao.entity.ActionUnit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Repository
public interface ActionUnitMapper extends BaseMapper<ActionUnit> {

    @Select("select * from action_unit where robot_id = #{robotId}")
    List<ActionUnit> selectByRobotId(Long robotId);

    void update(ActionUnit actionUnit);

    void create(ActionUnit actionUnit);

    void delete(ActionUnit actionUnit);
}